﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FinanSoft.BusinessLayer;

namespace FinanSoft.Entities
{
    class DocService
    {
        #region Atributos
        private int _idDocumentoContable;
        private Account _saleAccount;
        private Tax _tax;
        private Currency _currency;
        private double _cost;
        private string _description;
        #endregion

        #region Constructors
        public DocService(int idDocumento, int accId, int taxId, double cost, int currencyId, string description)
        {
            _idDocumentoContable = idDocumento;
            _saleAccount = CatalogManager.GetInstance().GetAccount(accId);
            _tax = ConfigurationManager.GetInstance().GetTax(taxId);
            _currency = MoneyManager.GetInstance().GetCurrency(currencyId);
            _cost = cost;
            _description = description;
        }
        #endregion

        #region Properties

        public int IdDocumento
        { get { return _idDocumentoContable; } }

        public Account SalesAccount
        { get { return _saleAccount; } }

        public Tax ServiceTax
        { get { return _tax; } }

        public Currency ServiceCurrency
        { get { return _currency; } }

        public double CostAmount
        { get { return _cost; } }

        public string Description
        { get { return _description; } }
        #endregion
    }
}
